#include "mutexlocker.h"

MutexLocker::MutexLocker(MutexBase *m)
{
    m_m = m;
    if(m_m)
    {
        m_m->Lock();
    }
}

MutexLocker::~MutexLocker()
{
    if(m_m)
    {
        m_m->UnLock();
    }
}
